package com.hotelvip.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author Lzh
 * @date 2020/12/22 16:03
 */
@Data
@TableName("ht_vitem")
@Accessors(chain = true)
public class VItem extends BasePojo {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "会员卡权益id",name = "id")
    private Long id;
    @TableField(exist = false)
    @ApiModelProperty(value = "vip(套餐)卡id/vip(用户)id",name = "vId")
    private Long vId;
    @ApiModelProperty(value = "含有的商品id",name = "itemId")
    private Long itemId;
    @ApiModelProperty(value = "商品标题",name = "itemTitle")
    private String itemTitle;
    @ApiModelProperty(value = "主图",name = "itemImage")
    private String itemImage;
    @ApiModelProperty(value = "商品价格(分)",name = "itemPrice")
    private Long itemPrice;
    @ApiModelProperty(value = "商品单位",name = "itemUnit")
    private String itemUnit;
    @ApiModelProperty(value = "商品权次",name = "itemNum")
    private Integer itemNum;
    @ApiModelProperty(value = "是否冻结FlagEnum枚举1是0否",name = "freeze")
    private Integer freeze;
    @ApiModelProperty(value = "本期数量",name = "usable")
    private Integer usable;
    @ApiModelProperty(value = "权次",name = "total")
    private Integer total;
    @ApiModelProperty(value = "冻结次数",name = "total_s")
    private Integer total_s;
    @ApiModelProperty(value = "使用规则",name = "rule")
    private Integer rule;
    @ApiModelProperty(value = "数据类型",name = "type",notes = "判断是套餐还是会员卡消费信息0为套餐，1为会员卡消费信息")
    private Integer type;
    @ApiModelProperty(value = "用户id",name = "userId",notes = "绑定用户id 如果为套餐，该值为0")
    private Long userId;
    @ApiModelProperty(value = "冻结次数",name = "f_time")
    private Integer Ftime;
//    @ApiModelProperty(value = "创建时间",name = "createTime")
//    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
//    private Date createTime;
//    @ApiModelProperty(value = "更新时间",name = "updateTime")
//    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
//    private Date updateTime;
}
